package com.eusoft.grades.school;
/**
 * @author Nick Eubanks
 * 
 * Copyright (C) 2010 Android Infinity (http://www.androidinfinity.com)
 *
 */
import java.io.Serializable;

/**
 * 
 * @author Nick Eubanks
 */
public class Letter implements Serializable, Comparable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 670083905984876002L;
	public double gradePoints = 0;
	public String identifier = "";
	public double lowerBound = 0;

	public Letter(String id, double low, double points) {
		this.identifier = id;
		this.lowerBound = low;
		this.gradePoints = points;
	}
	
	

	@Override
	public int compareTo(Object another) {
		if(this.lowerBound > ((Letter)another).lowerBound) return 1;
		else if(this.lowerBound < ((Letter)another).lowerBound) return -1;
		else return 0;
	}
	
	
}
